home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 2002 November / SGI IRIX Base Documentation 2002 November.iso / usr / share / catman / p_man / cat3 / ifl_c / iflTile2D.z / iflTile2D
Encoding:
Text File  |  2002-10-03  |  1.6 KB  |  67 lines

  1.  
  2.  
  3.  
  4. iiiiffffllllTTTTiiiilllleeee((((3333))))        IIIImmmmaaaaggggeeee FFFFoooorrrrmmmmaaaatttt LLLLiiiibbbbrrrraaaarrrryyyy CCCC++++++++ RRRReeeeffffeeeerrrreeeennnncccceeee MMMMaaaannnnuuuuaaaallll         iiiiffffllllTTTTiiiilllleeee((((3333))))
  5.  
  6.  
  7.  
  8. NNNNAAAAMMMMEEEE
  9.      iiiiffffllllTTTTiiiilllleeee2222DDDD - defines a simple 2-D rectangle
  10.  
  11. IIIINNNNHHHHEEEERRRRIIIITTTTSSSS FFFFRRRROOOOMMMM
  12.      This is a base class and therefore has no inheritance.
  13.  
  14. HHHHEEEEAAAADDDDEEEERRRR FFFFIIIILLLLEEEE
  15.      #include <ifl/iflCdefs.h>
  16.  
  17. DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  18.      This class is used to describe rectangles (tiles). It is mostly used to
  19.      group together the four values describing the origin (_x,_y) and size
  20.      (_n_x,_n_y,) of a rectangle in a convenient way.  The following is an example
  21.      on how to use a 2D integer tile.  iflTile object can be declared in the
  22.      following way:
  23.  
  24.               /* unitialized, and later filled in */
  25.               iflTile2Dint tile;
  26.  
  27.               tile.x = xStart
  28.               tile.y = yStart
  29.               tile.nx = xSize
  30.               tile.ny = ySize
  31.  
  32.               /* or initialized */
  33.               static iflTile2Dint tile = { xSize, yStart, xSize, ySize };
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42.  
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62.  
  63.                                                                         PPPPaaaaggggeeee 1111
  64.  
  65.  
  66.  
  67.